install_plugins_table_api_args_{$tab}
Filter HookDescription
Filters API request arguments for each Add Plugins screen tab. The dynamic portion of the hook name, `$tab`, refers to the plugin install tabs. Possible hook names include: - `install_plugins_table_api_args_favorites` - `install_plugins_table_api_args_featured` - `install_plugins_table_api_args_popular` - `install_plugins_table_api_args_recommended` - `install_plugins_table_api_args_upload` - `install_plugins_table_api_args_search` - `install_plugins_table_api_args_beta`Hook Information
File Location |
wp-admin/includes/class-wp-plugin-install-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 236 |
Hook Parameters
Type | Name | Description |
---|---|---|
array|false
|
$args
|
Plugin install API arguments. |
Usage Examples
Basic Usage
<?php
// Hook into install_plugins_table_api_args_{$tab}
add_filter('install_plugins_table_api_args_{$tab}', 'my_custom_filter', 10, 1);
function my_custom_filter($args) {
// Your custom filtering logic here
return $args;
}
Source Code Context
wp-admin/includes/class-wp-plugin-install-list-table.php:236
- How this hook is used in WordPress core
<?php
231 *
232 * @since 3.7.0
233 *
234 * @param array|false $args Plugin install API arguments.
235 */
236 $args = apply_filters( "install_plugins_table_api_args_{$tab}", $args );
237
238 if ( ! $args ) {
239 return;
240 }
241
PHP Documentation
<?php
/**
* Filters API request arguments for each Add Plugins screen tab.
*
* The dynamic portion of the hook name, `$tab`, refers to the plugin install tabs.
*
* Possible hook names include:
*
* - `install_plugins_table_api_args_favorites`
* - `install_plugins_table_api_args_featured`
* - `install_plugins_table_api_args_popular`
* - `install_plugins_table_api_args_recommended`
* - `install_plugins_table_api_args_upload`
* - `install_plugins_table_api_args_search`
* - `install_plugins_table_api_args_beta`
*
* @since 3.7.0
*
* @param array|false $args Plugin install API arguments.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/class-wp-plugin-install-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.